COM_HEAD='''<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<link rel="stylesheet" href="/static/style.css" type="text/css" />	<!--Common Stylesheet-->
	<script type="text/javascript" src="/static/obfus.js"></script>	<!--Contains all scripts-->

	<!--JScripts inserted on each page-->
	<script type="text/javascript">
	//<![CDATA[
	%s
	//]]>
	</script>
	
	<title>%s</title>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
'''

COM_FOOT='''
		<div id="powered">
			<a href="http://www.python.org/"><img src="/static/python.png" alt="Python Powered" height="20px"/></a>
			&nbsp;
			<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="18"/></a>
		</div>
		<div class="radminfoot">
			<a onmouseover="popup('some idiots from iiser kolkata, do these things when thay have nothing useful to do!')" 
			onmouseout="kill()" title="" onfocus="this.blur()" href="/static/aboutus.txt">
				&copy;&nbsp;www@iiserk.net
			</a>
		</div>
		<div class="ladminfoot">
			<a href="/admin">admin area</a>
		</div>
'''

#############################################################################################################################
START_PAGE = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
		animatedcollapse.addDiv('colldiv1', 'fade=0,speed=500,group=colldivs,hide=1')
		animatedcollapse.addDiv('colldiv2', 'fade=0,speed=500,group=colldivs,hide=1')
		animatedcollapse.init()
''',"IISER Quick Message Service") + '''
<body>
	<div class="headerblock">
		<h1>iiserk msg</h1>
	</div>
	<div class="logoblock">
		<img onmouseover="popup('Hey! I deliver your messages really fast.')" onmouseout="kill()" title="" src="/static/msg.png" alt="IISERK Msg" height="128px"/>
	</div>
	<div id="content">
		<h2>helloo!</h2>
		<p style="text-align: right;">
			<span class="small">home</span>
		</p>
		<p>
			Hi! I am the quick message service for students of IISER
			Kolkata. Anyone with an <a href="http://iiserk.net">iiserk.net</a>
			account may subscribe.  I'll help you in pinging your buddies whenever you like!
		</p>
		<h2>things that I can do</h2>
		<p>
			I can send both <b>emails</b> over the internet, as well as <b>SMSs</b> to your cellphones.
			<ins>
				<ul>
					<li>For <b>emails</b>, go to the corresponding link below. 
					There you will find an option to subscribe to a list of courses that you are curently studying. 
					Later on if anyone sends a mail or a file to that particular course, it gets forwarded to all the students who have subscribed to it.
					<br/>
					<span class="smallblack">
						<a href="javascript:animatedcollapse.toggle('colldiv1')">Learn more</a>&nbsp;||&nbsp;<a href="/email">Get Started!</a>
						<ins>
							<div id="colldiv1">
								<b>how does this work?</b>
								<ul>
									<li>You subscribe to updates about some courses, say A,B,C,D.</li>
									<li>One of your friends subscribe to courses B,C,D,E while another buddy, subscribes to A,B,D,E.</li>
									<li>Now suppose someone wants to send a file, say a lecture note, to all the students in course C. He/she will
										<ul>
											<li>Attach the file.</li>
											<li>Select the course C from a list.</li>
											<li>Type any additional message and hit send.</li>
											<li>Done!</li>
										</ul>
									</li>
									<li>Yup! the message alongwith the attachment, will reach all the students subscribed to course C.</li>
								</ul>
								<a href="/email">Get Started!</a>
							</div>
						</ins>
					</span>
					</li>
					<li>You can use the <b>sms</b> feature as well. Once you register your mobile number, any message posted on the sms channel will be delivered to your mobile, free of charge!
					<br/>
					<span class="smallblack">
						<a href="javascript:animatedcollapse.toggle('colldiv2')">Learn more</a>&nbsp;||&nbsp;<a href="/sms">Get Started!</a>
						<ins>
							<div id="colldiv2">
								<b>how does this work?</b>
								<ul>
									<li>You register your mobile number for Google SMS Channels service.</li>
									<li>Your buddies do the same.</li>
									<li>Now suppose someone wants to send a SMS to all the subscribed members. He/she will
										<ul>
											<li>Pick up the phone.</li>
											<li>Type two keywords, followed by a space and the message and send it to the given number.</li>
											<li>Done!</li>
										</ul>
									</li>
									<li>Yup! the message will reach all the subscribers.</li>
								</ul>
								<a href="/sms">Get Started!</a>
							</div>
						</ins>
					</span>
					</li>
				</ul>
			</ins>
		</p>
		<h2>things that you can do here</h2>
		<p>
			<ins>
				<ul>
					<li>Jump to the  <a href="/email">email</a> page.</li>
					<li>Jump to the <a href="/sms">sms</a> page.</li>
				</ul>
			</ins>
		</p>
%s
	</div>
</body>
</html>
'''%(COM_FOOT)


#############################################################################################################################


EMAIL_START_PAGE = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
	<div class="headerblock"><h1>quick mail</h1></div>
	<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
	<div id="content">
		<h2>send mails</h2>
		<p style="text-align: right;">
			<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;emails</span>
		</p>
		<p>
			This is the quick message service for students of IISER
			Kolkata. Anyone with an <a href="http://iiserk.net">iiserk.net</a>
			account may subscribe. This service helps one in sending a message
			to all students who've subscribed to receive messages for a particular
			course.
		</p>
		<ul>
			<li><a href="/subscribe">subscribe</a></li>
			<li>send a mail
				<ul>
					<li><a href="/msg">only message and no attachments</a></li>
					<li><a href="/dropfile">a message with an attachment</a></li>
				</ul>
			</li>
		</ul>
%s
	</div>
</body>
</html>
'''%(COM_FOOT)


#############################################################################################################################


TYPE_ASK = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div id="content">
<div class="headerblock"><h1>what kind of message?</h1></div>
<form name="msgtype" action="/typesubmitted" enctype="multipart/form-data" method="post">
<div>
<div>I want to send
<select name="attachq">
<option>A message as well as an attachment</option>
<option selected>Only a message, but no attachment</option>
</select>
<input type="submit" value="Submit"/></div>
</form>
</div></body>
</html>
'''
#############################################################################################################################
CREATE_MSG_FORM  = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>message</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<h2>send a mail</h2>
<p style="text-align: right;">
<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;<a href="/email">email</a>&nbsp;&raquo;&nbsp;send msg</span>
</p>
<br/>
<form name="mailinput" action="%s" enctype="multipart/form-data" method="post">
<table>
<tr><td width="300px" style="padding-right: 30px" valign="top">
Select a course<br>
<span class="small">
students registered in the selected course will receive the mail
</span>
</td>
<td valign="top">
<select name="course">
%s
</select>
</td></tr></table>

<p>You can <a href="/requestcourseadd">request</a> a course if it's not on the list.</p><br/>
<div>Please type your message below:<br/><br/>
<label for="subject">Subject:</label><br/>
<input name="subject" class='subjekt' value="" type="text" /><br/>
<textarea name="msgcontent" rows="15" cols="80" wrap="physical"/>--Message Start--






--Message End--
--Do Not Edit Below This Line--
--Attachment Info--
%s

</textarea></div>
<div><input type="submit" value="Submit"/></div>
</form>
'''
#############################################################################################################################
SUBSCRIBE_FORM = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
</head>
<body>
<div class="headerblock"><h1>subscriptions</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<h2>subscribe for notifications</h2>
<p style="text-align: right;">
<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;<a href="/email">email</a>&nbsp;&raquo;&nbsp;subscribe</span>
</p>
<br/>
<form name="subscribe" action="/subscribed" enctype="multipart/form-data" method="post">
<table>
<tr><td valign="top" style="padding-right: 20px">
Select the courses<br/>
<span class="small">
hold <b>ctrl</b> while selecting for multiple selections.<br/>
you will get notifications about the courses you select.<br/>
If you had subscribed earlier, the old choices will already be selected.
</span></td>
<td valign="top">
<select name="course" MULTIPLE SIZE=10>
%s
</select><br/>
<input type="submit" value="Submit"/></td></tr></table>
</form>
<p>Particular course is not in the list? Kindly click <a href="/requestcourseadd">here</a> to get the course code added.</p><br/>

'''
#############################################################################################################################
SUBSCRIBED_FORM = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>subscriptions</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<h2>courses you have subscribed to</h2>
<p style="text-align: right;">
<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;<a href="/email">email</a>&nbsp;&raquo;&nbsp;subscribed</span>
</p>
<br/>
<p>
<ul>
%s
</ul>
</p>
<h3><a href="/email">Go back</a></h3>
'''
#############################################################################################################################
COURSE_ADD_FORM = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>add a course</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<br/>
<form name="courseadd" action="/added" enctype="multipart/form-data" method="post">
<div>
<p>Enter the course code along with a one word identifier: <i> e.g. PH313-Quantum Mechanics </i><br/>
<div>Course:<input type="text" name="course"></div>
</p>
<p>Enter some optional info about the course:
<div>About:<br/><textarea name="courseabout" rows="5" cols="40" wrap="virtual"/></textarea></div>
</p>
</div>
<input type="submit" value="Submit"/></div>
</form>
</div></body>
</html>
'''
#############################################################################################################################
COURSE_REQUEST_FORM = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>request a course</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<br/>
<form name="courseadd" action="/mailrequest" enctype="multipart/form-data" method="post">
<p>Enter the course code along with a one word identifier: <i> e.g. PH313-Quantum Mechanics </i><br/>
<div>Course:<input type="text" name="course"></div>
</p>
<p>Enter some optional info about the course: <i> Optional, you may leave this blank if you wish</i><br/>
<div>About:<br/><textarea name="courseabout" rows="5" cols="40" wrap="virtual"/></textarea></div>
</p>
<input type="submit" value="Submit"/>
</form>

'''
#############################################################################################################################
REQUEST_SENT = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>request sent</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<br/>
<p>
Mail sent to webmaster. Details will be soon added.
</p>
<p>
%s
</p>
<p>
<h3>Go <a href="/email">back</a></h3>
</p>
<a href="http://www.python.org/"><img src="/static/python.png" alt="Python Powered" align="right"/></a>
<div class="radminfoot">
<a onmouseover="popup('some idiots from iiser kolkata, do these things when thay have nothing useful to do!')" onmouseout="kill()" title="" onfocus="this.blur()" href="/static/aboutus.txt">&copy;&nbsp;www@iiserk.net</a>
</div>
<div class="ladminfoot">
<a href="/admin">admin area</a>
</div>
</div>
</body>
</html>
'''
#############################################################################################################################
POST_ONLY = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div id="content">
<h2>Error</h2>
<br/>
<p>
This is supposed to be a form submission link. Visiting this page directly is useless.<br/>
</p>
<h2>Go <a href="/">back.</a></h2>
<a href="http://www.python.org/"><img src="/static/python.png" alt="Python Powered" align="right"/></a>
<div class="radminfoot">
<a onmouseover="popup('some idiots from iiser kolkata, do these things when thay have nothing useful to do!')" onmouseout="kill()" title="" onfocus="this.blur()" href="/static/aboutus.txt">&copy;&nbsp;www@iiserk.net</a>
</div>
<div class="ladminfoot">
<a href="/admin">admin area</a>
</div>
</div>
</body>
</html>
'''

#############################################################################################################################
MAIL_SENT = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div id="content">
<h2>mail sent</h2>
<p style="text-align: right;">
<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;<a href="/email">email</a>&nbsp;&raquo;&nbsp;mail sent</span>
</p>
<h3>Mail sent to:</h3>
<div>
%s
</div>
<br/>
<h3>Go <a href="/email">back</a></h3>
<a href="http://www.python.org/"><img src="/static/python.png" alt="Python Powered" align="right"/></a>
<div class="radminfoot">
<a onmouseover="popup('some idiots from iiser kolkata, do these things when thay have nothing useful to do!')" onmouseout="kill()" title="" onfocus="this.blur()" href="/static/aboutus.txt">&copy;&nbsp;www@iiserk.net</a>
</div>
<div class="ladminfoot">
<a href="/admin">admin area</a>
</div>
</div>

</div></body>
</html>
'''
#############################################################################################################################
ATTACH_FORM = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>attachments</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<br/>
<form method="post" action="%s" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="%s">
<input type="hidden" name="UPLOAD_IDENTIFIER" value="%s">
<input type="hidden" name="extra_info" value="%s">
<input type="file" name="userfile">
<input type="hidden" name="redirect_url" value="%s">
<input type="submit" value="Submit"/>
</form>
'''
#############################################################################################################################
ADMIN_PAGE = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>Links</h1></div>
<div class="logoblock"><img src="/static/mail.png" alt="IISERK Email" height="72px"/></div>
<div id="content">
<p>
<a href="/addcourse">Add Course</a>
</p>
</div></body>
</html>
'''
#############################################################################################################################
SMS_HOME = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
''',"IISER Quick Message Service") + '''
<body>
	<div class="headerblock"><h1>iiserk sms</h1></div>
	<div class="logoblock"><img src="/static/cell.png" alt="IISERK SMS" height="72px"/></div>
	<div id="content">
		<h2>welcome</h2>
		<p style="text-align: right;">
			<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;sms</span>
		</p>
		You can use this service to send SMSs to all your buddies in IISERK.<br/>
		<h3>how it works?</h3>
		<ul>
			<li>You (as well as your buddies) <a href="/sms-register">register</a> your mobile number here and subscribe to the <b>iiserkmsg</b> channel.</li>
			<li>After registration, any subscriber can <a href="/sms-send">send</a> any number of messages to the <b>iiserkmsg</b> channel, the message will get forwarded to all the subscribers.</li>
			<li>Yes! you <a href="/sms-send">send</a> a single sms and it gets forwarded to all the subscribers, that is to all your buddies.</li>
			<li>You are <b>charged only for the single sms</b> that you had sent initially, the forwarding is done by Google's SMS Channels service <b>free of cost</b>!</li>
		</ul>
		<h3>how to register?</h3>
		<ul>
			<li>Click <a href="/sms-register">here</a>.</li>
		</ul>
		<h3>how to send messages?</h3>
		<ul>
			<li>Click <a href="/sms-send">here</a>.</li>
		</ul>
		<h3>how to receive messages?</h3>
		<ul>
			<li>Just <a href="/sms-register">subscribe</a> once! You will automatically get all messages.</li>
		</ul>
%s
	</div>
</body>
</html>
'''%(COM_FOOT)
#############################################################################################################################
SMS_REG = COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1, #colldiv2', '5px');
		animatedcollapse.addDiv('colldiv1', 'fade=0,speed=500,group=colldivs,hide=1')
		animatedcollapse.addDiv('colldiv2', 'fade=0,speed=500,group=colldivs,hide=1')
		animatedcollapse.addDiv('colldiv3', 'fade=0,speed=500,group=colldivs,hide=1')
		animatedcollapse.addDiv('colldiv4', 'fade=0,speed=500,group=colldivs,hide=1')
		animatedcollapse.init()
''',"IISER Quick Message Service") + '''
<body>
<div class="headerblock"><h1>iiserk sms</h1></div>
<div class="logoblock"><img src="/static/cell.png" alt="IISERK SMS" height="72px"/></div>
<div id="content">
<h2>register for sms</h2>
<p style="text-align: right;">
<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;<a href="/sms">sms</a>&nbsp;&raquo;&nbsp;register</span>
</p>
<h2>How to register using your cellular phone?</h2>
<h3>For first time registration of your mobile number complete the following steps.</h3>
<ul>
<li>Ensure that you have read the <a href="http://labs.google.co.in/smschannels/termsofuse"> Terms of Service</a> before registering.</li>
<br/>

<li>Save this number: <b>+919870807070</b> in your phonebook
<span class="smallblack">
<a href="javascript:animatedcollapse.toggle('colldiv1')"> why? </a>
<div id="colldiv1" style="width: 400px; background: #BDF381; border: 1px solid #319aaa; -moz-border-radius: .4em; -webkit-border-radius: .4em; border-radius: .4em;padding:5pt;">
You will be sending all future messages to this number.
Standard National SMS charges for sending messages. This is not a premium number, so you won't be charged any extra amount. There are no charges for receiving SMSs.
</div>
</span>
</li>

<br/>

<li>Type<span style="color:red">&nbsp;&nbsp;&nbsp;<b>register</b>&nbsp;&nbsp;&nbsp;</span>and send to <b>+919870807070</b>
<span class="smallblack">
<a href="javascript:animatedcollapse.toggle('colldiv2')"> why? </a>
<div id="colldiv2" style="width: 400px; background: #BDF381;border: 1px solid #319aaa; -moz-border-radius: .4em; -webkit-border-radius: .4em; border-radius: .4em; padding:5pt;">
It is necessary for one time registration of your cellular phone number. Standard National SMS charges for sending messages apply.
</div>
</span>
</li>

<br/>

<li>Type<span style="color:red">&nbsp;&nbsp;&nbsp;<b>pref&nbsp;&nbsp;&nbsp;50&nbsp;&nbsp;&nbsp;6:30am&nbsp;&nbsp;&nbsp;11:30pm&nbsp;&nbsp;&nbsp;</b></span> and send to <b>+919870807070</b>
<span class="smallblack">
<a href="javascript:animatedcollapse.toggle('colldiv3')"> why? </a>
<div id="colldiv3" style="width: 400px; background: #BDF381; border: 1px solid #319aaa; -moz-border-radius: .4em; -webkit-border-radius: .4em; border-radius: .4em;padding:5pt;">
If you send&nbsp;&nbsp;&nbsp;<b>pref&nbsp;&nbsp;&nbsp;50&nbsp;&nbsp;&nbsp;6:30am&nbsp;&nbsp;&nbsp;11:30pm&nbsp;&nbsp;&nbsp;</b>The service will send a maximum of 50sms per day, and messages 
will be sent from 06:30am to 11:30pm, so that it doesn't disturb you at night. By default <i>Google SMS channels</i> service will send you maximum of 10 sms daily, and messages will be sent only from 08:00am to 08:00pm. You will want to change the default values, to ensure that you get messages on time.
</div>
</span>
</li>

<br/>

<li>Type<span style="color:red"><b>&nbsp;&nbsp;&nbsp;on&nbsp;&nbsp;&nbsp;iiserkmsg&nbsp;&nbsp;&nbsp;</b></span>and send to <b>+919870807070</b>
<span class="smallblack">
<a href="javascript:animatedcollapse.toggle('colldiv4')"> why? </a>
<div id="colldiv4" style="width: 400px; background: #BDF381; border: 1px solid #319aaa; -moz-border-radius: .4em; -webkit-border-radius: .4em; border-radius: .4em;padding:5pt;">
Sending <b>&nbsp;&nbsp;&nbsp;on&nbsp;&nbsp;&nbsp;iiserkmsg&nbsp;&nbsp;&nbsp;</b> will enable you to start receiving messages from the <b>iiserkmsg</b> channel. At any time to stop receiving messages posted on channel <b>iiserkmsg</b>, type<span style="color:red"><b>&nbsp;&nbsp;&nbsp;off&nbsp;&nbsp;&nbsp;iiserkmsg&nbsp;&nbsp;&nbsp;</b></span>and send to <b>+919870807070</b>.
</div>
</span>
</li>
<br/>
<li>
Well its done! You can start <a href="/sms-send">sending</a> messages.
</li>
</ul>
<h2>How to register using the web-interface?</h2>
<ul>
<li>Go to the <a href="http://labs.google.co.in/smschannels/subscribe/iiserkmsg">iiserkmsg</a> on Google SMS Channels and follow the instructions to subscribe.</li>
<li>You would need a Google Account.</li>
</ul>
<a href="http://www.python.org/"><img src="/static/python.png" alt="Python Powered" align="right"/></a>
<div class="radminfoot">
<a onmouseover="popup('some idiots from iiser kolkata, do these things when thay have nothing useful to do!')" onmouseout="kill()" title="" onfocus="this.blur()" href="/static/aboutus.txt">&copy;&nbsp;www@iiserk.net</a>
</div>
<div class="ladminfoot">
<a href="/admin">admin area</a>
</div>

</div></body>
</html>
'''
#############################################################################################################################
SMS_SEND=COM_HEAD %('''
		DD_roundies.addRule('.headerblock, #content, #colldiv1', '5px');
		animatedcollapse.addDiv('colldiv1', 'fade=0,speed=500,group=colldivs,hide=1')
		animatedcollapse.init()
''',"IISER Quick Message Service") + '''
<body>
	<div class="headerblock"><h1>iiserk sms</h1></div>
	<div class="logoblock"><img src="/static/cell.png" alt="IISERK SMS" height="72px"/></div>
	<div id="content">
		<h2>send sms</h2>
		<p style="text-align: right;">
			<span class="small"><a href="/">home</a>&nbsp;&raquo;&nbsp;<a href="/sms">sms</a>&nbsp;&raquo;&nbsp;send</span>
		</p>
		<h2>How to send/receive messages using your cellular phone?</h2>
		<h3>To send a message to all the members of the group</h3>
		<ul>
			<li>Ensure that you have read the <a href="http://labs.google.co.in/smschannels/termsofuse"> Terms of Service</a> before sending messages.</li>
			<li>Ensure that you had registered earlier, if not <a href="/sms-register">register</a> your mobile number now.</li>
			<li>Remember this is a public sms channel, anyone (including our teachers) can subscribe, so please don't send offensive messages.</li>
			<li>Type<span style="color:red">&nbsp;&nbsp;&nbsp;<b>send&nbsp;&nbsp;&nbsp;iiserkmsg&nbsp;&nbsp;&nbsp;"Your message"</b>&nbsp;&nbsp;&nbsp;</span>and send to <b>+919870807070</b>
				<span class="smallblack"><br/>
				<a href="javascript:animatedcollapse.toggle('colldiv1')"> example </a>
				<div id="colldiv1">
				For example to send the message <i>"Hello World!</i> to all your buddies, type&nbsp;&nbsp;&nbsp;<b>send&nbsp;&nbsp;&nbsp;iiserkmsg&nbsp;&nbsp;&nbsp;Hello World!</b>&nbsp;&nbsp;&nbsp;and send to <b>+919870807070</b></span>
				</div>
				</span>
			</li>
		</ul>
		<h2>How to send/receive messages using the web-interface?</h2>
		<ul>
			<li>Go to the <a href="http://labs.google.co.in/smschannels/channel/iiserkmsg">iiserkmsg</a> on Google SMS Channels and follow the instructions.</li>
			<li>You would need a Google Account.</li>
		</ul>
		<a href="http://www.python.org/"><img src="/static/python.png" alt="Python Powered" align="right"/></a>
		<div class="radminfoot">
		<a onmouseover="popup('some idiots from iiser kolkata, do these things when thay have nothing useful to do!')" onmouseout="kill()" title="" onfocus="this.blur()" href="/static/aboutus.txt">&copy;&nbsp;www@iiserk.net</a>
		</div>
		<div class="ladminfoot">
		<a href="/admin">admin area</a>
		</div>
	</div>
</body>
</html>
'''
